using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Bussiness.Entity
{
                

     public class CmsProductsEntity:AF_ORM.CORE.BaseEntity
    {
         public CmsProductsEntity()
         {
             tableName = "CmsProducts";


			 fieldInfos.Add(new FieldInfo("CmsProducts","CategoryId","CategoryId","Guid",0,false,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsProducts","Id","Id","Guid",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsProducts","IntId","IntId","int",0,false,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsProducts","Photo","Photo","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsProducts","Price","Price","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsProducts","ProductCode","ProductCode","string",50,false,true,false,false,"","",""));
         }
       //properties
                    
		 protected Guid m_CategoryId;
		 protected Guid m_Id;
		 protected int m_IntId;
		 protected string m_Photo;
		 protected double m_Price;
		 protected string m_ProductCode;

		 public Guid CategoryId

          { 
                get { 
                    return m_CategoryId;}

                set{m_CategoryId=value;

                    GetField("CategoryId").Set();
                    GetField("CategoryId").IsNull=(value == null);           
                    }
          }
		 public Guid Id

          { 
                get { 
                    return m_Id;}

                set{m_Id=value;

                    GetField("Id").Set();
                    GetField("Id").IsNull=(value == null);           
                    }
          }
		 public int IntId

          { 
                get { 
                    return m_IntId;}

                set{m_IntId=value;

                    GetField("IntId").Set();
                    GetField("IntId").IsNull=(value == null);           
                    }
          }
		 public string Photo

          { 
                get { 
                    return m_Photo;}

                set{m_Photo=value;

                    GetField("Photo").Set();
                    GetField("Photo").IsNull=(value == null);           
                    }
          }
		 public double Price

          { 
                get { 
                    return m_Price;}

                set{m_Price=value;

                    GetField("Price").Set();
                    GetField("Price").IsNull=(value == null);           
                    }
          }
		 public string ProductCode

          { 
                get { 
                    return m_ProductCode;}

                set{m_ProductCode=value;

                    GetField("ProductCode").Set();
                    GetField("ProductCode").IsNull=(value == null);           
                    }
          }

}
}
